package com.firmboy.search.load;

import java.util.List;
import java.util.Map;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;

public class LoadXml {
	
	public static String xmlPath = "";
	
	/**
	 * 加载系统中的xml，默认src下面的application.xml
	 * @return
	 */
	public static List<Map<String,String>> getXml(){
		SAXParserFactory spf = SAXParserFactory.newInstance(); //创建一个sax解析工厂
		try {
			SAXParser sax = spf.newSAXParser();			//获取一个sax解析器
			XMLReader xmlReader = sax.getXMLReader(); //获取一个xml的saz解析器
		} catch (Exception e) {
			// TODO: handle exception
		}
		return null;
	}
}
